|
haptic5 2.2.0
|
This file contains API for Haptic 5 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"#include "drv_pwm.h"Go to the source code of this file.
Data Structures | |
| struct | haptic5_t |
| Haptic 5 Click context object. More... | |
| struct | haptic5_cfg_t |
| Haptic 5 Click configuration object. More... | |
Enumerations | |
| enum | haptic5_return_value_t { HAPTIC5_OK = 0 , HAPTIC5_ERROR = -1 } |
| Haptic 5 Click return value data. More... | |
Functions | |
| void | haptic5_cfg_setup (haptic5_cfg_t *cfg) |
| Haptic 5 configuration object setup function. | |
| err_t | haptic5_init (haptic5_t *ctx, haptic5_cfg_t *cfg) |
| Haptic 5 initialization function. | |
| err_t | haptic5_default_cfg (haptic5_t *ctx) |
| Haptic 5 default configuration function. | |
| err_t | haptic5_set_duty_cycle (haptic5_t *ctx, float duty_cycle) |
| Haptic 5 set duty cycle function. | |
| err_t | haptic5_pwm_stop (haptic5_t *ctx) |
| Haptic 5 stop PWM function. | |
| err_t | haptic5_pwm_start (haptic5_t *ctx) |
| Haptic 5 start PWM function. | |
| void | haptic5_set_dir_forward (haptic5_t *ctx) |
| Haptic 5 set direction forward function. | |
| void | haptic5_set_dir_reverse (haptic5_t *ctx) |
| Haptic 5 set direction reverse function. | |
| void | haptic5_toggle_dir (haptic5_t *ctx) |
| Haptic 5 toggle direction function. | |
| void | haptic5_enable_device (haptic5_t *ctx) |
| Haptic 5 enable device function. | |
| void | haptic5_disable_device (haptic5_t *ctx) |
| Haptic 5 disable device function. | |
This file contains API for Haptic 5 Click Driver.